package cn.ecut.tbjie.dao;

import cn.ecut.tbjie.model.People;
import cn.ecut.tbjie.model.Tokens;
import com.sun.el.parser.Token;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface PeopleDao {
    int deleteByPrimaryKey(Integer peopleId);

    int insert(People record);

    int insertSelective(People record);

    People selectByPrimaryKey(Integer peopleId);

    int updateByPrimaryKeySelective(People record);

    int updateByPrimaryKey(People record);

    List<People> selectAll();

    int findIdByPeopleName(String peopleName);

    void putPeoplePswById(Integer peopleId, String peoplePsw);

    String selectInfoById(Integer peopleId);

    People selectAllByName(String peopleName);

    Tokens selectTokenByName(String peopleName);

    String getPasswordById(int id);

    void updateSaltAndRandom(People people);
}